<template>
    <div>
        <van-tabs v-model:active="active">
            <van-tab title="精选">
                <van-swipe :autoplay="3000" lazy-render>
                    <van-swipe-item v-for="image in images" :key="image">
                        <img :src="image" style="width: 200px;height: 170px;" />
                    </van-swipe-item>
                </van-swipe>
                <img src="./首页_02.jpg" alt="" style="text-align: center;margin-right: 55px;">
            </van-tab>
            <van-tab title="本地">本地</van-tab>
            <van-tab title="新车">新车</van-tab>
            <van-tab title="原创">原创</van-tab>
            <van-tab title="视频看车">视频看车</van-tab>
            <van-tab title="导购">导购</van-tab>
        </van-tabs>
    </div>
</template>

<script setup>

    const images = [
        'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
        'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
        'https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg',
        'https://fastly.jsdelivr.net/npm/@vant/assets/apple-4.jpeg',
    ];
</script>

<style lang="scss" scoped></style>